/**
 * Code to display an image in an ImageView
 *
 * Replace this code into PicDetailFragment.onCreateView():
 * 	if (mItem != null) {
 *		((TextView) rootView.findViewById(R.id.pic_detail))
 *				.setText(mItem.content);
 *	}
 *
 * with the following:
 * (in PicDetailFragment.java)
 */
// Show the content in an ImageView.
if (mItem != null) {
	AssetManager am = getActivity().getAssets();
	try {
		Drawable d = Drawable
				.createFromStream(am.open(mItem.content), null);
		((ImageView) rootView.findViewById(R.id.pic_detail_pic))
				.setImageDrawable(d);
	} catch (IOException e) {
		Log.e("Load Image", "Error loading image", e);
	}
}